import request from '@/utils/request'
// 获取房间列表
export function getSpaceRoomList(data) {
  return request({
    url: '/capsule/specs/item/page',
    method: 'post',
    data: data
  })
}
// 获取详情
export function getSpaceRoomDetail(id) {
  return request({
    url: '/capsule/specs/item/getDetail/' + id,
    method: 'get'
  })
}
// 新增和修改
export function spaceRoomModify(data) {
  return request({
    url: '/capsule/specs/item/modify',
    method: 'post',
    data:data
  })
}
// 删除
export function spaceRoomDelete(id) {
  return request({
    url: '/capsule/specs/item/delete/' + id,
    method: 'get'
  })
}
